<?php defined('_JEXEC') or die('Restricted access'); ?>

<h2 class="componentheading"><?php echo JText::_('COM_BBSDIR_TITLECOMPONENT'); ?></h2>

<div class="sub_heading"><?php echo JText::_('COM_BBSDIR_BROWSEBYCOUNTRY'); ?></div>

<div class="countries_container">

	<?php foreach ($this->all_countries as $continent): ?>
	<div class="cont_country">
	<h3 class="continent_title"><?php echo $continent->title; ?></h3>
		<ul class="countries_list">
			<?php foreach ($continent->countries as $country): ?>
				<li class="country_<?php echo $country->id; ?>">
				<span class="country_flag"><img src="<?php echo JURI::base(); ?>administrator/components/com_bbitsd/assets/flags/<?php echo $country->flag;?>.png" alt="<?php echo $country->title; ?>" /></span>
				<span class="country_title">
				<a href="index.php?option=com_bbitsd&view=country&id=<?php echo $country->id; ?>" title="<?php echo $country->title; ?>">
					<?php echo $country->title; ?></span>
				</a>
				</li>			
			<?php endforeach; ?>
		</ul>
	</div>
	<?php endforeach; ?>


</div>